package org.eclipse.php.internal.console.ui.view;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IViewActionDelegate;
import org.eclipse.ui.IViewPart;

public class ClearHistoryViewActionDelegate implements IViewActionDelegate {

	public ClearHistoryViewActionDelegate() {
	}
	private HistoryView view = null;
	
	public void init(IViewPart view) {
		this.view = (HistoryView)view;
	}

	public void run(IAction action) {
		view.clearHistory();
	}

	public void selectionChanged(IAction action, ISelection selection) {
	}

}
